<? 
//if(MEMBER) common::accessdenied();
if(MEMBER&&FORMAT=='html') header('location: /'.LANG.'/'.APP.'/home');
if(POST) account::login($_POST); 
else {
$data->TITLE = _('Login');
$data->DESCRIPTION = MEMBERSHIP 
        ? sprintf(_('Don\'t have an account? %s Create one %s.'),
                sprintf('<a href="/'.LANG.'/account/join" title="%s">',_('join')),'</a>')
        :_('Account Login');
if($_COOKIE['LOGINATTEMPT']>3) $data->account->captcha = true;
}
?>